#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <iomanip>

using namespace std;

typedef int ElemType;
#define MAXSIZE 10

typedef struct Stack {

	ElemType* top;
	ElemType* base;
	int stacksize;
}Stack, * PStack;


void init_Stack(PStack ps);
bool is_Stack_full(PStack ps);
bool is_Stack_empty(PStack ps);
bool push(PStack ps, ElemType val);
bool pop(PStack ps, ElemType* pVal);
void traverse_Stack(PStack ps);
ElemType getTop(PStack ps);
int len_Stack(PStack ps);
bool clear_Stack(PStack st);
bool destory_Stack(PStack st);
